<?php
	include_once("config.php");
	checkLoggedIn("no");
	//include the RainTPL class
	include "inc/rain.tpl.class.php";
	
	raintpl::configure("base_url", null );
	raintpl::configure("tpl_dir", "theme/" );
	raintpl::configure("cache_dir", "tmp/" );

	//initialize a Rain TPL object
	$tpl = new RainTPL;
	
	//LDAP Query
	include "lib/ldap/ldapQuery.php";

	//variable assign example
	$messages = $_GET['messages'];
	$tpl->assign($messages);
	
	$info = array( 'title'=>'Seele Speicher',
                       'copyright' => 'Copyright 2010 - 2011 Rain TPL<br>Project By Rain Team' );

	$tpl->assign( $info );

	$page = "auth";
	$html = $tpl->draw( $page, $return_string = true );

        // and then draw the output
        echo $html;
        
        class str{
            function cut($t){
                return substr($t, 1, 2 );
            }
        }
?>